<template>
  <div class="select-item" @click="select">
    <span>{{value}}</span>
  </div>
</template>

<script>
import { bus } from './bus.js'
export default {
  props: {
    value: String
  },
  methods: {
    select () {
      bus.$emit('select', this.value)
    }
  }
}
</script>
